<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

class Book_Service_Book extends Phpfox_Service {

    public function getUsers($iTotal) {
        return $this->database()->select('u.full_name')
                        ->from(Phpfox::getT('user'), 'u')
                        ->limit($iTotal)
                        ->execute('getRows');
    }
    
    public function getBooks(){
        return $this->database()->select('*')
                ->from(Phpfox::getT('book'))
                ->execute('getRows');
    }

}
